package com.action.library;

import com.bean.library.PaperInfo;
import com.dao.DaoManager;
import com.dao.library.PaperInfoDao;

public class TGetExamInfoAction {
	public PaperInfo getPaperInfo(int paperId){
		DaoManager dm = DaoManager.getInstance();
		PaperInfoDao paperInfoDao = dm.getDao(PaperInfoDao.class);
		PaperInfo paperInfo = null;
		try
		{
			dm.begin();
			paperInfo = paperInfoDao.getPaperInfoByPaperId(paperId);
			dm.commit();
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		finally 
		{
			dm.end();
		}
		return paperInfo;
	}
}
